@import "../../../../styles/themes/variable";

.shopping-car {
  position: relative;
  .shopping-car-head {
    display: flex;
    padding: 6px;
    position: relative;
    .shopping-car-logo {
      width: 168px;
      height: 84px;
    }
    .shopping-car-title {
      position: absolute;
      left: 180px;
      bottom: 5px;
      font-size: 16px;
      font-weight: bold;
    }
    .shopping-car-black {
      position: absolute;
      right: 12px;
      bottom: 12px;
    }
  }
  .shopping-car-main {
    height: 80vh;
    overflow: hidden;
    margin: 0 !important;
    padding: 20px;
  }
  .shopping-car-empty {
    text-align: center;
    margin-top: 200px;
  }
  .shopping-car-remove {
    text-align: center;
    cursor: pointer;
    margin: 0 30px;
    font-size: 16px;
  }
  .shopping-car-table {
    th, td {
      text-align: center;
      padding: 6px;
    }
    .apes-table-thead > tr.apes-table-row-hover:not(.apes-table-expanded-row) > td,
    .apes-table-thead > tr:hover:not(.apes-table-expanded-row) > td,
    .apes-table-tbody > tr.apes-table-row-hover:not(.apes-table-expanded-row) > td,
    .apes-table-tbody > tr:hover:not(.apes-table-expanded-row) > td {
      background: rgba(6, 154, 246, 0.5);
    }
  }
  .shopping-car-img-box {
    height: 40px;
    width: 40px;
    padding: 4px;
    border: 1px solid #ababab;
    position: relative;
    text-align: center;
    border-radius: 4px;
    margin: auto;
    .shopping-car-img {
      height: 100%;
      width: 100%;
      border-radius: 4px;
      cursor: pointer;
    }
    .shopping-car-noImg {
      height: 100%;
      background: rgba(191, 191, 191, 0.3);
      border-radius: 4px;
      line-height: 2.5;
    }
  }
  .shopping-car-delete {
    cursor: pointer;
    &:hover {
      color: #eaebff;
    }
  }
  .shopping-car-num {
    width: 80%;
    margin: auto;
    input::-webkit-outer-spin-button,
    input::-webkit-inner-spin-button {
      -webkit-appearance: none;
    }
    input[type="number"] {
      -moz-appearance: textfield;
    }
    .shopping-car-num-btn {
      cursor: pointer;
    }
  }
  .shopping-car-footer {
    height: 8vh;
    display: flex;
    padding: 6px;
    position: relative;
    justify-content: space-between;
    .shopping-car-footer-left {
      display: flex;
      justify-content: space-between;
      width: 10vw;
    }
    .shopping-car-footer-right {
      display: flex;
      justify-content: space-between;
      width: 30vw;
    }
    .shopping-car-footer-parts {
      line-height: 45px;
    }
    .shopping-car-footer-btn {
      line-height: 45px;
      margin-right: 20px;
    }
    .shopping-car-footer-checkbox {
      padding-top: 10px;
      height: 45px;
      margin-left: 30px;
    }
    .shopping-car-footer-remove {
      padding-top: 12px;
      height: 45px;
      .footer-remove-btn {
        cursor: pointer;
        &:hover {
          color: #0589DD;
        }
      }
    }
  }
  .shopping-car-loading {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40vh 0 0;
    text-align: center;
    z-index: 100;
    background: rgba(217, 236, 248, 0.5);
    .shopping-car-loading-progress {
      width: 300px;
      margin: auto;
      font-size: 16px;
    }

    /deep/ .apes-progress-bg {
      height: 12px;
      background-image: linear-gradient(to right, rgb(16, 142, 233) 0%, rgb(135, 208, 104) 100%);
    }

    /deep/ .apes-progress-inner {
      border: 1px solid rgba(0,0,0,0.3);
    }
  }
}
